home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 712 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  821 b 

  1. Path: transformer.pti-us.com.!vermont
  2. From: rj.mills@pti-us.com (Dick Mills)
  3. Newsgroups: comp.lang.c++
  4. Subject: Can I use new in constructors of static objects?
  5. Date: Fri, 05 Jan 96 21:34:13 GMT
  6. Organization: Power Technologies Inc.
  7. Distribution: world
  8. Message-ID: <4ck5fv$lp1@transformer.pti-us.com>
  9. NNTP-Posting-Host: vermont.pti-us.com
  10. X-Newsreader: News Xpress Version 1.0 Beta #2.1
  11.  
  12. I'm tracking a strange bug, that has to do with the new/delete
  13. heap being damaged.  It seems to have to do with an object
  14. that uses delete and new from the constructor.  This instance
  15. of the object is module static.
  16.  
  17. It occured to me that the language might not gurantee that
  18. the preamble to initialize heap management is executed before
  19. static object constructors.
  20.  
  21. We're using cfront on Solaris.
  22.  
  23. Am I barking up the wrong tree?
  24.  
  25.  
  26.